package com.tfjybj.itoo.exam.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * SemesterModel
 * 学年学期表
 *
 * @author 杨江涛
 * @version 2.0.0
 * @since 2.0.0 2018-11-17 11:17:35
 */
@ApiModel(value = "SemesterModel:学年学期表")
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
public class SemesterModel implements Serializable {

    //region 模板逆向生产来自SemesterEntity的属性
    /**
     * id
     */
    @ApiModelProperty(value = "semester主键")
    @Column(name = "id")
    private String id;
    /**
     * 学年学期名称
     */
    @ApiModelProperty(value = "学年学期名称", required = true)
    private String name;

    /**
     * 学年学期code
     */
    @ApiModelProperty(value = "学年学期code", required = true)
    private String code;

    /**
     * 是否毕业
     */
    @ApiModelProperty(value = "是否毕业", example = "0")
    private Integer isGraduate;

    /**
     * 是否当前
     */
    @ApiModelProperty(value = "是否当前", example = "0")
    private Integer isCurrent;

    //endregion

    /* *****************************以下是非模板生成的内容************************************ */
}
